package com.example.basic.service;

public interface RedisService {

    /**
     * set k-v if key is absent
     * @param key
     * @param value
     * @return
     */
    Boolean setnx(String key, Object value);

    /**
     * get value by key
     * @param key
     * @return
     */
    Object get(String key);

    /**
     * delete value by key
     * @param key
     * @return
     */
    Boolean delete(String key);
}
